package com.ruoyi.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.entity.JrFile;
import com.ruoyi.entity.JrSecuritys;
import com.ruoyi.entity.vo.FileUploadVO;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface FilesService {
    int renameFile(Long fileId, String newName);

    // 逻辑删除文件
    int deleteFile(Long fileId);

    /**
     * 根据用户密级过滤文件上传密级下拉框
     * @return 密级数据
     */
    List<JrSecuritys> getFilesByCurrentUserSecurity();

    /**
     * 上传文件
     */
    AjaxResult uploadFile(MultipartFile[] files , @RequestPart FileUploadVO dto);


}
